package com.gary.security.model;

import java.util.HashSet;
import java.util.Set;

import com.gary.core.tree.LongTreeNode;

public class DeptInfo extends LongTreeNode<DeptInfo> {
    /** * serial. */
    static final long serialVersionUID = 0L;

    /** * parent. */
    private DeptInfo parent;

    /** * name. */
    private String name;

    /** * theSort. */
    private Integer theSort;

    /** * descn. */
    private String descn;

    /** * children. */
    private Set<DeptInfo> children = new HashSet<DeptInfo>(0);

    /** * users. */
    private Set<UserInfo> users = new HashSet<UserInfo>(0);

    /** * 构造方法. */
    public DeptInfo() {
    }

    public DeptInfo getParent() {
        return parent;
    }

    /** * @param parent Dept. */
    public void setParent(DeptInfo parent) {
        this.parent = parent;
    }

    /** * @return name. */
    public String getName() {
        return name;
    }

    /** * @param name name. */
    public void setName(String name) {
        this.name = name;
    }

    /** * @return theSort. */
    public Integer getTheSort() {
        return theSort;
    }

    /** * @param theSort Integer. */
    public void setTheSort(Integer theSort) {
        this.theSort = theSort;
    }

    /** * @return descn. */
    public String getDescn() {
        return descn;
    }

    /** * @param descn descn. */
    public void setDescn(String descn) {
        this.descn = descn;
    }

    /** * @return children. */
    public Set<DeptInfo> getChildren() {
        return children;
    }

    /** * @param children Set. */
    public void setChildren(Set<DeptInfo> children) {
        this.children = children;
    }

    /** * @return users. */
    public Set<UserInfo> getUsers() {
        return users;
    }

    /** * @param users users. */
    public void setUsers(Set<UserInfo> users) {
        this.users = users;
    }
}
